package org.example.service;

import org.example.domain.User;
import org.example.param.UserFuzzyParam;
import org.example.param.UserRegisterParam;
import org.example.param.UserUpdateParam;
import org.example.param.UserUpdatePwdParam;
import org.example.utils.Result;

public interface UserService {

    Result findUserById(Long id);

    Result all();

    Result register(UserRegisterParam userRegisterParam);

    Result findUserByAccount(String account);

    Result fuzzy(UserFuzzyParam userFuzzyParam);

    Result getUserByName(String account);

    Result delete(Long id);

    Result update(UserUpdateParam userUpdateParam);

    Result updatePassword(UserUpdatePwdParam userUpdatePwdParam);

    Result currentUser();

    Result updateAvatar(String avatar);
}
